Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CMake Build System #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JeffreyO
Copy link

@JeffreyO JeffreyO commented Jul 27, 2024

I have added a CMake build system and a .gitignore.
A CMake file is within the zlib directory to grab and set it up automatically. This is what it downloads: https://github.com/jimmy-park/zlib-cmake . This is compiling successfully on both windows 11 MSVC and Android Termux Clang.

An attempt was made to get zlib-ng working without any source code changes, but that attempt failed. The old attempt is commented out in zlib/CMakeLists.txt in case anyone wants to try getting it working.

@JeffreyO
Copy link
Author

This CMake Project builds statically linked executables on Windows 11 x64, but different platforms might automatically change this if it's a requirement there.

Do you prefer shared or static linked executables? If you build shared, it's possible to copy a prebuilt zlib-ng.dll library over the existing zlib.dll.

@JeffreyO
Copy link
Author

JeffreyO commented Jul 27, 2024

I'm currently working on CPack and have this program completely working and installable within the Android Termux application. It is almost complete, other than some metadata stuff I need to type in. Currently checking if CPack works on Windows 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant